resolve maintanence issue in interpolate & resample filters. (#1161)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 23 Aug 2023 16:32:23 +0000 (10:32 -0600)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 16:32:23 +0000 (10:32 -0600)
commit4386f99626e02b89fecc30857aab38a6addd1230
tree1cc3cd4871a632987367a66aabcd06c5f630ea75
parent394684174ec3558e9d27ea2e16f92459069c5de4
resolve maintanence issue in interpolate & resample filters. (#1161)

* resolve maintanence issue in interpolate filter.

Instead of manually creating a deep copy of the route list with
an empty waypoint list we operate on the original route list by
swapping it's waypoint list with an empty list.  This is both more
efficient and easier to maintain.

* resolve maintanence issues in resample filter.

Instead of manually creating a deep copy of the route list with
an empty waypoint list we operate on the original route list by
swapping it's waypoint list with an empty list.  This is both more
efficient and easier to maintain.

For efficient deletion use track_del_marked_wpts.
interpolate.cc
interpolate.h
resample.cc
resample.h